Returns the values of an Enum type (Type.IsEnum == true).

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
public static IList<T> GetEnumValues<T>(
	this Type enumType
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function GetEnumValues(Of T) ( _
	enumType As Type _
) As IList(Of T)

Parameters

enumType
Type: System..::..Type
Enum type.

Type Parameters

T
Enum type.

Return Value

The list of values for that enum type.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also